package cn.tedu.medicalmanagementsystem.manager.mapper;

import cn.tedu.medicalmanagementsystem.manager.pojo.dto.AppointmentListQuery;
import cn.tedu.medicalmanagementsystem.manager.pojo.entity.Appointment;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.AppointmentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ManagerAppointmentMapper {
    //  添加预约记录
    void insert(Appointment appointment);
    //  修改预约记录
    void update(Appointment appointment);
    //  删除预约记录
    void deleteById(Long id);
    //  根据ID查询预约记录
    AppointmentVO selectById(Long id);
    //  查询所有预约记录
    List<AppointmentVO> allAppointments();
    //  根据用户ID查询预约记录
    List<AppointmentVO> getByUserId(Long userId);
    //  根据真实姓名查询预约记录
    List<AppointmentVO> selectByRealName(String realName);
    List<AppointmentVO> select(AppointmentListQuery appointmentListQuery);

    List<AppointmentVO> getByContactRealName(String contactName);
}
